export default {
  bind(el, binding) {
    el.addEventListener('scroll', function() {
      const scrollDom = el.querySelector('#pullRefreshBox');
      if (scrollDom.scrollTop < 20) {
        binding.value();
      }
    }, true);
  }
};
